<?php

namespace App\Http\Controllers\Admin;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;

class DashboardController extends Controller
{
    public function __construct()
    {
        $this->middleware('auth.admin:admin');
    }

    public function index()
    {
        //print_r(Auth::guard('admin')->user()->toArray());
        //print_r(auth()->guard('admin')->user()->toArray());
        dd('后台首页，当前用户名：'.auth('admin')->user()->name);
    }
}
